package com.ruoyi.agencyfund.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 运单代收款业务对象 a_agency_fund
 *
 * @author dxw
 * @date 2022-05-04
 */
public class AgencyFund extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 代收款表主键id */
    private Long id;

    /** 运单编号 */
    @Excel(name = "运单编号")
    private String waybillNumber;

    /** 代收款结算状态，0为未结算，1为已结算 */
    @Excel(name = "代收款结算状态，0为未结算，1为已结算")
    private Long agencyStatus;

    /** 应收金额 */
    @Excel(name = "应收金额")
    private String payment;

    /** 逻辑删除，0表示未删除，1表示已删除 */
    @Excel(name = "逻辑删除，0表示未删除，1表示已删除")
    private Integer deleted;

    /** 备注信息 */
    @Excel(name = "备注信息")
    private String remarks;

    /** 创建人的id */
    @Excel(name = "创建人的id")
    private Long createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新人的id */
    @Excel(name = "更新人的id")
    private Long updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /** 代收款佣金率 */
    @Excel(name = "代收款佣金率")
    private BigDecimal commissionRate;

    /** 返款业务类型 */
    @Excel(name = "返款业务类型")
    private String refundType;

    /** 合同id */
    @Excel(name = "合同id")
    private Long contractId;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderContractId;

    /** 发货人 */
    @Excel(name = "发货人")
    private String senderName;

    /** 收货人 */
    @Excel(name = "收货人")
    private String receiverName;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setWaybillNumber(String waybillNumber)
    {
        this.waybillNumber = waybillNumber;
    }

    public String getWaybillNumber()
    {
        return waybillNumber;
    }
    public void setAgencyStatus(Long agencyStatus)
    {
        this.agencyStatus = agencyStatus;
    }

    public Long getAgencyStatus()
    {
        return agencyStatus;
    }
    public void setPayment(String payment)
    {
        this.payment = payment;
    }

    public String getPayment()
    {
        return payment;
    }
    public void setDeleted(Integer deleted)
    {
        this.deleted = deleted;
    }

    public Integer getDeleted()
    {
        return deleted;
    }
    public void setRemarks(String remarks)
    {
        this.remarks = remarks;
    }

    public String getRemarks()
    {
        return remarks;
    }
    public void setCreatedBy(Long createdBy)
    {
        this.createdBy = createdBy;
    }

    public Long getCreatedBy()
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime)
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime()
    {
        return createdTime;
    }
    public void setUpdatedBy(Long updatedBy)
    {
        this.updatedBy = updatedBy;
    }

    public Long getUpdatedBy()
    {
        return updatedBy;
    }
    public void setUpdatedTime(Date updatedTime)
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime()
    {
        return updatedTime;
    }
    public void setCommissionRate(BigDecimal commissionRate)
    {
        this.commissionRate = commissionRate;
    }

    public BigDecimal getCommissionRate()
    {
        return commissionRate;
    }
    public void setRefundType(String refundType)
    {
        this.refundType = refundType;
    }

    public String getRefundType()
    {
        return refundType;
    }
    public void setContractId(Long contractId)
    {
        this.contractId = contractId;
    }

    public Long getContractId()
    {
        return contractId;
    }
    public void setOrderContractId(Long orderContractId)
    {
        this.orderContractId = orderContractId;
    }

    public Long getOrderContractId()
    {
        return orderContractId;
    }
    public void setSenderName(String senderName)
    {
        this.senderName = senderName;
    }

    public String getSenderName()
    {
        return senderName;
    }
    public void setReceiverName(String receiverName)
    {
        this.receiverName = receiverName;
    }

    public String getReceiverName()
    {
        return receiverName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("waybillNumber", getWaybillNumber())
                .append("agencyStatus", getAgencyStatus())
                .append("payment", getPayment())
                .append("deleted", getDeleted())
                .append("remarks", getRemarks())
                .append("createdBy", getCreatedBy())
                .append("createdTime", getCreatedTime())
                .append("updatedBy", getUpdatedBy())
                .append("updatedTime", getUpdatedTime())
                .append("commissionRate", getCommissionRate())
                .append("refundType", getRefundType())
                .append("contractId", getContractId())
                .append("orderContractId", getOrderContractId())
                .append("senderName", getSenderName())
                .append("receiverName", getReceiverName())
                .toString();
    }
}
